//
//  oldHistoryOrderListTableViewCell.m
//  laonianbangSupport
//
//  Created by 勇拓 李 on 18/3/5.
//  Copyright © 2018年 zaiyou. All rights reserved.
//

#import "oldHistoryOrderListTableViewCell.h"

@interface oldHistoryOrderListTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *label_time;
@property (weak, nonatomic) IBOutlet UILabel *label_addressAndName;
@property (weak, nonatomic) IBOutlet UILabel *label_type;
@property (weak, nonatomic) IBOutlet UILabel *label_status;
@property (weak, nonatomic) IBOutlet UILabel *label_income;


@end

@implementation oldHistoryOrderListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (void)setOrderInfo:(oldOrderInfo *)orderInfo
{
    _orderInfo = orderInfo;
    _label_time.text = orderInfo.endTime;
    _label_income.text = [NSString stringWithFormat:@"+%@元", orderInfo.totalAmount];
    _label_status.text = [orderInfo getCurrentOrderStatus];
    _label_type.text = [NSString stringWithFormat:@"类型:%@", orderInfo.serveCategory.cname];
    _label_addressAndName.text = [NSString stringWithFormat:@"%@, %@老人", orderInfo.location, orderInfo.clientInfo.uname];
}

@end
